﻿
using Abp.Organizations;
using AutoMapper;
using LZ.DCode.OrganizationUnits.Dto;
using LZ.DCode.DataDictionarys;
using LZ.DCode.DataDictionarys.Dtos;

namespace LZ.DCode.OrganizationUnits.Mapper
{

    /// <summary>
    /// 配置OrganizationUnits的AutoMapper映射
    /// 前往 <see cref="DCodeApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// OrganizationUnitsDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
    internal static class OrganizationUnitsDtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<OrganizationUnit, OrganizationUnitDto>();
            configuration.CreateMap<OrganizationUnitDto, OrganizationUnit>();
        }
    }
}

